package com.aizhixin.lab.quartz.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Date;

@Data
@Entity(name="sys_quartz_job")
public class QuartzJob {


    @Id
    @Column(name = "id")
    private java.lang.String id;
    /**创建人*/
    @Column(name = "create_by")
    private java.lang.String createBy;
    /**创建时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Column(name = "create_time")
    private java.util.Date createTime;
    /**删除状态*/
    @Column(name = "del_flag")
    private java.lang.Integer delFlag;
    /**修改人*/
    @Column(name = "update_by")
    private java.lang.String updateBy;
    /**修改时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Column(name = "update_time")
    private java.util.Date updateTime;
    /**任务类名*/
    @Column(name = "job_class_name")
    private java.lang.String jobClassName;
    /**cron表达式*/
    @Column(name = "cron_expression")
    private java.lang.String cronExpression;
    /**参数*/
    @Column(name = "parameter")
    private java.lang.String parameter;
    /**描述*/
    @Column(name = "description")
    private java.lang.String description;
    /**状态 0正常 -1停止*/
    @Column(name = "status")
    private java.lang.Integer status;
    @Column(name = "release_date")
    private Date releaseDate;
}
